/**
 * 产生随机点
 */
// 数据容器
// let data_content = null;
//随机生产点
export function createPoints(center, num) {
    let data = [];
    for (var i = 0, len = num; i < len; i++) {
        data.push({
            position: [
                center.getLng() + (Math.random() > 0.5 ? 1 : -1) * Math.random() * 30,
                center.getLat() + (Math.random() > 0.5 ? 1 : -1) * Math.random() * 20
            ]
        });
    }
    return data;
}
// ----------- 展示容器 -----------------
export function getPoint(data_content) {
    return data_content;
}
// ------------ 展示热力图数据 --------------
export function getHeatPoint(data_content) {
    let heatData = [];
    if (data_content) {
        for (let i = 0; i < data_content.length; i++) {
            let info = {
                lng: data_content[i].position[0],
                lat: data_content[i].position[1],
                count: 100
            }
            heatData.push(info);
        }
    }
    return heatData;
}